
        <div class="main fly-user-main layui-clear">
            <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
                <li class="layui-nav-item">
                    <a href="/u/1962072/">
                        <i class="layui-icon">
                            &#xe609;
                        </i>
                        我的主页
                    </a>
                </li>
                <li class="layui-nav-item ">
                    <a href="/user/">
                        <i class="layui-icon">
                            &#xe612;
                        </i>
                        用户中心
                    </a>
                </li>
                <li class="layui-nav-item layui-this">
                    <a href="/user/set/">
                        <i class="layui-icon">
                            &#xe620;
                        </i>
                        基本设置
                    </a>
                </li>
                <li class="layui-nav-item ">
                    <a href="/user/message/">
                        <i class="layui-icon">
                            &#xe611;
                        </i>
                        我的消息
                    </a>
                </li>
                <li class="layui-nav-item ">
                    <a href="/auth/get/">
                        <i class="layui-icon">
                            &#xe61e;
                        </i>
                        产品授权
                    </a>
                </li>
            </ul>
            <div class="site-tree-mobile layui-hide">
                <i class="layui-icon">
                    &#xe602;
                </i>
            </div>
            <div class="site-mobile-shade">
            </div>
            <div class="fly-panel fly-panel-user" pad20>
                <div class="layui-tab layui-tab-brief" lay-filter="user">
                    <ul class="layui-tab-title" id="LAY_mine">
                       <a href="./index.html"><li lay-id="info">
                            我的资料
                        </li></a> 
                        <li lay-id="avatar" class="layui-this">
                            头像
                        </li>
                        <a href="./mma.html"><li lay-id="pass">
                            密码
                        </li></a>
                        <li lay-id="bind">
                            帐号绑定
                        </li>
                    </ul>
                    <div class="layui-tab-content" style="padding: 20px 0;">
                        <div class="layui-form layui-form-pane layui-tab-item layui-show">
                            <div id="meitu" style="width:660px;height:440px;"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>
<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload=function(){
  /*第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高*/
  xiuxiu.embedSWF("meitu",5,"660","440");
  //修改为您自己的图片上传接口
  xiuxiu.setUploadURL("http://127.0.0.1"+"{:U('/home/set/upload')}");
  xiuxiu.setUploadType(2);
  xiuxiu.setUploadDataFieldName("upload_file");
  xiuxiu.onInit = function ()
  {
    xiuxiu.loadPhoto("http://127.0.0.1__ROOT__/"+"<?php echo $_SESSION['face'] ?>");//修改为要处理的图片url
  }
  xiuxiu.onUploadResponse = function (data)
  {
    
    // 可以开启调试
    if (data==0) {
        alert('上传失败');
    }else{
        location.reload();
    }
  }
}
</script>